from likeshop_project.base.mybase import Tools


class reg_model(Tools):
    # 定义路径
    path = '/api/account/register'

    def reg_action(self, mobile, password, client=2):
        mydata = {
            'mobile': mobile,
            'password': password,
            'client': client
        }
        res = self.huihua.post(url=self.hosturl + self.path, data=mydata)
        return res.json()


# import requests
#
# s = requests.session()
# reg = reg_model(huihua=s)
# msg = reg.reg_action(mobile='17909898989', password='123wqewqrf')
# print(msg)
